home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / blackjack1.swf / scripts / DefineButton2_161 / BUTTONCONDACTION on(release).as < prev   
Text File  |  2006-01-17  |  456b  |  15 lines

  1. on(release){
  2.    _root.Insurance2Mov.gotoAndStop(2);
  3.    if(currentBet[0] == 1)
  4.    {
  5.       currentBet[0] = 2;
  6.    }
  7.    _root.insuranceSum = Math.floor(_root.currentBet[0] / 2);
  8.    _root.playerTotalUpdate = _root.playerTotal[0] - _root.insuranceSum;
  9.    _root.playerTotal.unshift(_root.playerTotalUpdate);
  10.    _root.amountPlayer = _root.playerTotal[0];
  11.    _root.Insurance2Mov.amountInsurance = _root.insuranceSum;
  12.    _root.addChips();
  13.    play();
  14. }
  15.